#pragma once

#ifndef OBJECT_H
#define OBJECT_H

class CObject
{
public:
	CObject(void) : m_refs(0) {}	
	virtual ~CObject(void); {}

	virtual void Render(void) = 0;

	void IncRef() {m_refs++;}
	void DecRef() {m_refs--; if(m_refs == 0) {delete this;} }


private:
	int m_refs;
};

#endif